#include "stdafx.h"
#include "base_dbevent.h"

CBaseDbEvent::CBaseDbEvent()
: m_hDB(NULL)
, m_bEnableCallTaskresp(TRUE)
{

}

CBaseDbEvent::~CBaseDbEvent()
{

}

void CBaseDbEvent::SetDB(HANDLE hDB)
{
	//RT_INFO_TRACE_THIS("CBaseDbEvent::SetDB, hDB:"<<hDB);
	m_hDB = hDB;
}

BOOL CBaseDbEvent::NeedResponse()
{
	return TRUE;
}

RtResult CBaseDbEvent::pg_exec(const char* szSql, string& strErrorInfo)
{
	return CPGDB::pg_exec(m_hDB, szSql, strErrorInfo);
}

RtResult CBaseDbEvent::pg_query(const char* szSql, string& strErrorInfo, CPgQueryRes& queryRes)
{
	return CPGDB::pg_query(m_hDB, szSql, strErrorInfo, queryRes);
}
